<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/vue.js"></script>

</head>
<body>
<div id="root">hello , {{name}}</div>
<div id="root1"> hello, {{age}}</div>
<script type="text/javascript">
    Vue.config.productionTip = false;


    const mv = new Vue({
        /*el: '#root',*/
        data: {
            name: 'hhh'
        }
    })
    //挂载
    mv.$mount('#root')
    //延时
    /*setTimeout(() => {
        mv.$mount('#root')
    }, 1000)*/

    new Vue({
        el: '#root1',
        data() {
            return {
                age: 'asdfasd'
            }
        }
    })

</script>
</body>
</html>






















